import wepy from 'wepy'

class WxClass {
  
  //获取某项是否授权
  getWxAuth(auth_name,cb){
    wepy.getSetting({ success: res => {
      if( !res.authSetting[auth_name] ){
        cb( false )
      }else{
        cb( true )
      }
    } });
  }

}

const wxClass = new WxClass();

export { wxClass }